import { post, put, get } from '@/utils/hettpUtils/httpRequest'
// import { encryptedData } from "@/helper/encrypt";
const loginRSA = false
// api/sysLogin/getUserInfo
export const login = (parameter) => post('api/login/login', parameter)
export const logout = (parameter) => post('api/login/logout', parameter)
export const getUserInfo = (parameter) => get('api/login/getAdminInfo', parameter)
export const getNavRouters = (parameter) => get('api/login/getNavRouters', parameter)
export const getAccessTokenByRefresh =  (parameter) => post('api/login/getAccessTokenByRefresh', parameter)


// export function getNavRouters(params) {
//     if (loginRSA) {
//         params = encryptedData(params);
//     }
//     return post('/getNavRouters', params,{ headers: { isMock: true } )
// }
